<template>
	<view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages_mine/xiugaimm')">
			<view class="main_size hei_text">修改密码</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages_mine/shouhuodz')">
			<view class="main_size hei_text">收货地址</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages_mine/heimingdgl')">
			<view class="main_size hei_text">黑名单管理</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/login/system?type=3')">
			<view class="main_size hei_text">关于我们</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/login/system?type=2')">
			<view class="main_size hei_text">隐私政策</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages/login/system?type=1')">
			<view class="main_size hei_text">用户协议</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages_mine/bangzhuzx')">
			<view class="main_size hei_text">帮助中心</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages_mine/zhaohuimmsjh')">
			<view class="main_size hei_text">找回密码手机号</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="mainpadding flexbetween" @click="jumpurl('/pages_mine/yijianfk')">
			<view class="main_size hei_text">意见反馈</view>
			<u-icon name="arrow-right" color="#999" size="16"></u-icon>
		</view>
		<view class="posibottom mainpadding">
			<view class="submitbtn" @click="outLogin">退出登录</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")

	export default {
		data() {
			return {

			}
		},
		methods: {
			jumpurl(url) {
				uni.navigateTo({
					url
				})
			},
			outLogin() {
				httpRequest.modal('提示', '确定退出登录吗？', true, (res) => {
					if (res) {
						httpRequest.request('/api/user/logout', 'POST', {
						}).then(res => {
							uni.clearStorageSync()
							httpRequest.toast("退出登录成功")
							setTimeout(()=>{
								uni.navigateBack(1)
							},1000)
						})
					}
				})
			},
		}
	}
</script>

<style>

</style>